#define _CRT_SECURE_NO_WARNINGS 1



#include<stdio.h>


int main()
{
	FILE* pf = fopen("data.txt", "w");
	if (pf == NULL)
	{
		perror("fputs");
		return 1;
	}
	fputs("hello world\n", pf);
	fputs("hello everyone\n", pf);
	fclose(pf);
	pf == NULL;

	return 0;
}